
const ua = navigator.userAgent;

// 微信
export const isWX = () => {
  return /micromessenger/i.test(ua)
};
// 企业微信
export const isWXWork = () => {
  return /wxwork/i.test(ua);
};
// 移动端
export const isMobile = () => {
  return isWX() || isWXWork() || /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|e-mobile/i.test(ua);
};

export default isMobile;